import os

def save_high_score(high_score, filename="high_score.txt"):
    with open(filename, "w") as file:
        file.write(str(high_score))

def load_high_score(filename="high_score.txt"):
    if os.path.isfile(filename):
        with open(filename, "r") as file:
            return int(file.read())
    return 0
